package com.zbkj.common.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ReviewRequest", description = "门店、仓库调货单审核请求对象")
public class ReviewRequest {

    @ApiModelProperty(value = "主键id")
    @NotNull(message = "id不能为空")
    private Integer id;

    @ApiModelProperty(value = "审核状态(2审核通过 3不通过)")
    @NotNull(message = "审核状态不能为空")
    @Range(min = 2, max = 3, message = "未知的审核状态")
    private Integer auditStatus;
}
